package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.scs.application.core.entity.BaseEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityIndexAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
/**
 * <p>
 * 耗材-仓库-库存关系
 * </p>
 */
@Data
@Accessors(chain = true)
@TableName("base_matr_stock_warehouse")
@EntityClassAnnotation(remark = "耗材仓库库存关系")
@EntityIndexAnnotation(pk = "warehouse_id,matr_id",ux = "warehouse_id,matr_id")
public class MatrStockWarehouse extends BaseEntity {



    @EntityFieldAnnotation(
            text = "仓库id",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String warehouseId;

    @EntityFieldAnnotation(
            text = "耗材id",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String matrId;

    @EntityFieldAnnotation(
            text = "库存数量",
            length = "",
            not_null = false,
            default_value = "0.0000",
            comment = ""
    )
    private Double stockSkuQty;

    @EntityFieldAnnotation(
            text = "锁定数量",
            length = "",
            not_null = false,
            default_value = "0.0000",
            comment = ""
    )
    private Double stockLockSkuQty;

    @EntityFieldAnnotation(
            text = "可用数量",
            length = "",
            not_null = false,
            default_value = "0.0000",
            comment = "库存数量-锁定数量"
    )
    private Double stockUseSkuQty;

}
